package com.tenton.service;

import com.tenton.pojo.Admin;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Date: 2021/2/2
 * @Author: Tenton
 * @Description:
 */
public interface AdminService {
    /**
     * 获取所有管理员信息
     * @return
     */
    List<Admin> listAdmin();

    /**
     * 登录判断
     * @param name
     * @param password
     * @param model
     * @param session
     * @return
     */
    boolean login(String name, String password, Model model, HttpSession session);
}
